﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using A14_Ex02_Adam_300604568_Chen_20131689.Properties;

public class BoardButton : UserControl
{
    public BoardButton()
    {
        this.BackgroundImage = Resources.EmptyCell;
        this.Anchor = AnchorStyles.Left | AnchorStyles.Top;
        this.initializeComponent();
    }

    private void initializeComponent()
    {
        this.SuspendLayout();   
        //// 
        //// BoardButton
        //// 
        this.BackColor = System.Drawing.Color.LightGray;
        this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
        int height = Resources.EmptyCell.Height;
        int width = Resources.EmptyCell.Width;
        this.Size = new Size(height, width);
        this.ResumeLayout(false);
    }

    private void InitializeComponent()
    {
        this.SuspendLayout();
        // 
        // BoardButton
        // 
        this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
        this.Margin = new System.Windows.Forms.Padding(0);
        this.Name = "BoardButton";
        this.ResumeLayout(false);
    }
}